package application.Mediatiors
{
	import VCs.ScoreVC;
	
	import application.BallFacade;
	import application.Proxies.ScoreWritePxy;
	
	import org.gof.application.BaseAppFacade;
	import org.gof.application.BaseMediator;
	import flash.display.DisplayObjectContainer;
	import org.gof.application.SetByAppNS;
	
	use namespace SetByAppNS;
	public class ScoreMed extends BaseMediator
	{
		private var app:BallFacade;
		private var _vc:ScoreVC;
		
		public var data:ScoreWritePxy;
		
		public function ScoreMed()
		{
		}
		
		SetByAppNS override function set application(a:BaseAppFacade):void
		{
			
			super.application = a;
			app = _app as BallFacade;
		}
		
		public function set viewPort(vp:DisplayObjectContainer):void
		{
			_vc = new ScoreVC(vp);
			
		}
		
		public override function refreshData():void
		{
			_vc.score = data.score;	
		}
	}
}